﻿using System;
using System.Data;

namespace Speedy
{
    public enum DocumentTypes : byte
    {
        SatisFaturasi = 0
    }

    public class dbInvoiceHeader : MasterTable
    {
        public Column createDate { get; set; }
        public Column updateDate { get; set; }
        public Column savedFlag { get; set; }
        public Column sendFlag { get; set; }
        public Column terminalID { get; set; }
        public Column documentType { get; set; }
        public Column documentSeries { get; set; }
        public Column customerCode { get; set; }
        public Column documentDate { get; set; }
        public Column subTotal { get; set; }
        public Column vatTotal { get; set; }
        public Column discountTotal { get; set; }
        public Column grandTotal { get; set; }

        public dbInvoiceHeader()
        {
            this.createDate = new Column(typeof(string), "CREATE_DATE");
            this.updateDate = new Column(typeof(DateTime), "UPDATE_DATE");
            this.savedFlag = new Column(typeof(Boolean), "SAVED_FLAG");
            this.sendFlag = new Column(typeof(Boolean), "SENT_FLAG");
            this.terminalID = new Column(typeof(Int32), "TERMINAL_ID", 0, false, true);
            this.documentType = new Column(typeof(DocumentTypes), "DOCUMENT_TYPE", 0, false, true);
            this.documentSeries = new Column(typeof(Int32), "DOCUMENT_SERIES", 0, false, true);
            this.customerCode = new Column(typeof(String), "CUSTOMER_CODE", 25);
            this.documentDate = new Column(typeof(DateTime), "DOCUMENT_DATE");
            this.subTotal = new Column(typeof(Decimal), "SUBTOTAL");
            this.vatTotal = new Column(typeof(Decimal), "VAT_TOTAL");
            this.discountTotal = new Column(typeof(Decimal), "DISCOUNT_TOTAL");
            this.grandTotal = new Column(typeof(Decimal), "GENERAL_TOTAL");
        }
    }



}
